# Author:sp
# CreaTime: $(DATE)
# FileName: $(NAME)
# Description: simple introdution of the code
import random
def guss_num(new_num,old_num):
    if new_num==old_num:
        return 0
    elif new_num>old_num:
        return 1
    else:
        return -1

old_num=random.randint(1,100)
for i in range(0,10):
    new_num = int(input('请输入你要猜的数字'))
    result=guss_num(new_num,old_num)
    if result==0:
        print('恭喜您答对了')
        break
    elif result==1:
        print('大了')
        continue
    else:
        print('小了')
        continue